﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Zr/ZR.Master" AutoEventWireup="true"
    CodeBehind="StudentChengJiManage.aspx.cs" Inherits="EducationManagementSystem.Zr.StudentChengJiManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        #bg
        {
            background-color: #c1ddee;
            width: 800px;
            height: 500px;
        }
        #btn
        {
            position: absolute;
            left: 720px;
        }
        #head
        {
            background-color: #9984b0;
            width: 800px;
            height: 50px;
            position: absolute;
            top: 30px;
        }
        #lb
        {
            position: absolute;
            top: 15px;
            left: 300px;
        }
        #ban
        {
            position: absolute;
            top: 85px;
        }
        #gv
        {
            width: 800px;
            height: 450px;
            position: absolute;
            top: 130px;
        }
    </style>
    <div id="bg">
        <div id="btn">
            <asp:Button ID="Button1" runat="server" Width="80px" Text="添加" OnClick="Button1_Click" />
        </div>
        <div id="head">
            <div id="lb">
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
            </div>
        </div>
        <div id="ban">
            &nbsp;班级名称:&nbsp;&nbsp;<asp:DropDownList ID="DropDownList1" runat="server" Width="150px"
                Height="30px" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                <asp:ListItem Text="" Value='0'>
                </asp:ListItem>
            </asp:DropDownList>
        </div>
        <div id="gv">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand"
                PageSize="6">
                <Columns>
                    <asp:BoundField DataField="stuID" HeaderText="学号">
                        <HeaderStyle Height="40px" Width="200px" />
                        <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="stuName" HeaderText="学生姓名">
                        <HeaderStyle Height="40px" Width="200px" />
                        <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="courseName" HeaderText="课程名称">
                        <HeaderStyle Height="40px" Width="200px" />
                        <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="courseCount" HeaderText="课时数">
                        <HeaderStyle Height="40px" Width="200px" />
                        <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="courseScore" HeaderText="结课成绩">
                        <HeaderStyle Height="40px" Width="200px" />
                        <ItemStyle Height="45px" Width="40px" HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Button ID="Button5" runat="server" Text="删除" CommandName="de" CommandArgument='<%#Eval("scoreID") %>' />
                        </ItemTemplate>
                        <HeaderStyle Height="10px" Width="45px" />
                        <ItemStyle Height="25px" Width="80px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle HorizontalAlign="Center" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
